/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UTILITARIOS;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import javax.swing.*;


/**
 *
 * @author Administrador
 */
public class PanelInformacion extends JPanel{

        private JLabel lblFecha;
	private TimeLabel lblTime;

	private Fecha fecha = new Fecha();
        private JLabel informacion;

	public PanelInformacion(){
		setProperties();
		buildComponents();
		setPropertiesComponents();
		addComponents();
	}

	private void setProperties() {
		setLayout(new BorderLayout());
                System.out.println("asdas"+getLayout());

		setBorder(BorderFactory.createRaisedBevelBorder());
	}

	private void buildComponents() {
		lblFecha = new JLabel("FECHA ACTUAL : "+fecha.getFechaPrincipal());
		lblTime = new TimeLabel();
                informacion = new JLabel();

	}

	public void updateChangeType(){

	}

	private void setPropertiesComponents() {
		Font font = new Font("Arial",Font.PLAIN,15);
		lblFecha.setFont(font);
                lblFecha.setForeground(Color.WHITE);
                lblFecha.setPreferredSize(new Dimension(600, 20));
		

                informacion.setText("Sistema Desarrollado por SITS. Todos los derechos reservados");
                informacion.setForeground(Color.white);
                informacion.setPreferredSize(new Dimension(400, 20));
		
		lblTime.setForeground(Color.WHITE);
                lblTime.setFont(font);


	}

	private void addComponents() {
		add(lblFecha, BorderLayout.WEST);
                add(informacion, BorderLayout.CENTER);
		add(lblTime, BorderLayout.EAST);

		
	}

    public String getLblFecha() {
        return lblFecha.getText();
    }

    public String getLblTime() {
        return lblTime.getText();
    }

    public static void main(String[] args) {
        PanelInformacion p = new PanelInformacion();
        System.out.println("p = " + p.getLblTime());
    }



}
